﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using _7DaysToDieTools.Class;

namespace _7DaysToDieTools
{
    public partial class FormBagDll : Form
    {
        public FormBagDll()
        {
            InitializeComponent();
        }

        public FormBagDll(Form pForm)
        {
            InitializeComponent();
            this.Location = new Point(pForm.Location.X + pForm.Width / 2 - this.Width / 2, pForm.Location.Y + pForm.Height / 2 - this.Height / 2);
        }

        private void FormBagDll_Load(object sender, EventArgs e)
        {

        }

        private void buttNums_Click(object sender, EventArgs e)
        {
            try
            {
                BagAction.BagSet(Sinfo.Path.Dll + Sinfo.File.GameDllAssembly, (Int32)numNums.Value);
                MessageBox.Show("设置成功");
            }
            catch(Exception x)
            {
                MessageBox.Show("设置背包出错：\n" + x.Message);
            }
        }
    }
}
